class <%= controller_class_name -%>Controller < DryScaffoldController

<% unless suffix -%>
  def index
    redirect_to :action => 'list'
  end
<% end -%>

# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy<%= suffix %>, :create<%= suffix %>, :update<%= suffix %> ],
       :redirect_to => { :action => :list<%= suffix %> }

<% for action in unscaffolded_actions -%>
  def <%= action %><%= suffix %>
  end
<% end -%>

  def label<%= suffix %>
    "Put your label here"  + " - " + self.action_name
  end

  def list<%= suffix %>
    # Put your code here.
    super
  end

  def component<%= suffix %>
    # Put your code here. For example:
    # @find_params = {:conditions => [ "event_id = ?", params[:parent_id] ]} unless params[:parent_id].nil?
    super
  end

  def new<%= suffix %>
    # Put your code here.
    super
  end

  def create<%= suffix %>
    # Put your code here.
    super
  end

  def edit<%= suffix %>
    # Put your code here.
    super
  end

  def update
    # Put your code here.
    super
  end

  def destroy<%= suffix %>
    # Put your code here.
    super
  end

  def show<%= suffix %>
    # Put your code here.
    super
  end

  def view<%= suffix %>
    # Put your code here.
    super
  end

end
